package com.baizhi.mapper;

import com.baizhi.entity.Order;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

import java.util.List;

public interface OrderMapper {
    void addOrder(Order order);
    @Delete("delete from t_order where order_id=#{id}")
    void removeOrder(Integer id);
    void updateOrder(Order order);
    Order selectOrder(Integer id);
    List<Order> selectAllOrder(@Param("pageNum")Integer pageNum,@Param("pageSize")Integer pageSize);
    Order select(Integer id);
}
